{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Replication-Log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}17 Sep 2018, 08:05:01

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. ///Project: Introducing GLP Paper Table 2 
> ///Date:07 29 2018 
> ///Stata14 
> 
. 
. ********TABLE 2*************
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. count if power==1
  {res}210
{txt}
{com}. count if power==3
  {res}1,220
{txt}
{com}. count if office1==2|office2==2|office3==2
  {res}3,664
{txt}
{com}. count if office1==7|office2==7|office3==7
  {res}1,032
{txt}
{com}. count if office1==6|office2==6|office3==6
  {res}31,269
{txt}
{com}. count if wealth==0
  {res}27,626
{txt}
{com}. count if wealth==1
  {res}10,459
{txt}
{com}. count if region==1
  {res}8,055
{txt}
{com}. count if region==2
  {res}5,547
{txt}
{com}. count if region==3
  {res}9,794
{txt}
{com}. count if region==4
  {res}10,730
{txt}
{com}. count if region==5
  {res}3,959
{txt}
{com}. count if regime==0
  {res}27,141
{txt}
{com}. count if regime==1
  {res}10,944
{txt}
{com}. ***Row 1: Age***
. preserve
{txt}
{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        145    54.75923    4.358047   42.40909         68
{txt}
{com}. restore
{txt}
{com}. **By Offices**
. **Apex**
. preserve
{txt}
{com}. keep if power==1
{txt}(37,875 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        143    60.72028    10.01823         38         89
{txt}
{com}. restore
{txt}
{com}. **Top Ten**
. preserve
{txt}
{com}. keep if power==3
{txt}(36,865 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        140    58.98739    6.860794       39.4         83
{txt}
{com}. restore
{txt}
{com}. **Cabinet**
. preserve
{txt}
{com}. keep if  office1==2 |office2==2| office3==2
{txt}(34,421 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        142    55.62755    5.196748      38.75       72.5
{txt}
{com}. restore
{txt}
{com}. **Supreme Court**
. preserve
{txt}
{com}. keep if  office1==7 |office2==7| office3==7
{txt}(37,053 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        104    61.34281    6.324546         43         75
{txt}
{com}. restore
{txt}
{com}. **MPs**
. preserve
{txt}
{com}. keep if  office1==6|office2==6| office3==6
{txt}(6,816 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        137    53.47543    4.535848   41.94726         80
{txt}
{com}. restore
{txt}
{com}. **By Wealth**
. **Non-Oecd**
. preserve
{txt}
{com}. keep if wealth==0
{txt}(10,459 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        112    55.11579    4.581833   42.40909         68
{txt}
{com}. count
  {res}112
{txt}
{com}. restore
{txt}
{com}. **Oecd**
. preserve
{txt}
{com}. keep if wealth==1
{txt}(27,626 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         33    53.54908    3.269745   47.72727   60.44968
{txt}
{com}. restore
{txt}
{com}. **By Region**
. preserve
{txt}
{com}. forvalues x=1/5 {c -(}
{txt}  2{com}. clear all
{txt}  3{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}  4{com}. keep if region==`x'
{txt}  5{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}  6{com}. sum aver_age
{txt}  7{com}. {c )-}
{txt}(30,030 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         38     56.4989    4.222498   42.40909      65.25
{txt}(32,538 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         24     54.3068    4.529288   45.15625     65.125
{txt}(28,291 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         26    54.42235    3.929392   45.84211   63.70109
{txt}(27,355 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         41     52.4193    2.964931   47.33784   60.44968
{txt}(34,126 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         16    57.84964    4.936984   47.70588         68
{txt}
{com}. restore
{txt}
{com}. **By Regime**
. **Democracy**
. preserve
{txt}
{com}. keep if regime==0
{txt}(10,944 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        113    54.22755    3.849813   45.15625      65.25
{txt}
{com}. restore
{txt}
{com}. count
  {res}38,085
{txt}
{com}. **Non-democracies**
. preserve
{txt}
{com}. keep if regime==1
{txt}(27,141 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         32    56.63672    5.477899   42.40909         68
{txt}
{com}. restore
{txt}
{com}. 
. ***Row 2: Gender***
. preserve
{txt}
{com}. //drop if gender==.
. collapse (sum) male=male female=female, by(country country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    81.25925    10.02725   52.06612        100
{txt}
{com}. restore 
{txt}
{com}. **By Offices**
. **Apex**
. preserve
{txt}
{com}. keep if power==1
{txt}(37,875 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}(1 missing value generated)

{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        144    92.36111    23.88744          0        100
{txt}
{com}. restore
{txt}
{com}. **Top Ten**
. preserve
{txt}
{com}. keep if power==3
{txt}(36,865 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        143    89.86029    12.19053         50        100
{txt}
{com}. restore
{txt}
{com}. **Cabinet**
. preserve
{txt}
{com}. keep if office1==2 |office2==2| office3==2
{txt}(34,421 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    82.03978    13.20783   38.09524        100
{txt}
{com}. restore
{txt}
{com}. **Supreme Court**
. preserve
{txt}
{com}. keep if office1==7 |office2==7| office3==7
{txt}(37,053 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}(3 missing values generated)

{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        133    81.23851    24.95344          0        100
{txt}
{com}. restore
{txt}
{com}. **MPs**
. preserve
{txt}
{com}. keep if office1==6 |office2==6| office3==6
{txt}(6,816 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}(1 missing value generated)

{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        144    80.57514     11.1949   43.24324        100
{txt}
{com}. restore
{txt}
{com}. **By Wealth**
. **nonoecd**
. preserve
{txt}
{com}. keep if wealth==0
{txt}(10,459 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        112    82.97826    9.373573   52.06612        100
{txt}
{com}. restore
{txt}
{com}. **oecd**
. preserve
{txt}
{com}. keep if wealth==1
{txt}(27,626 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         33    75.42505    10.11107   52.70936   92.43856
{txt}
{com}. restore
{txt}
{com}. **By Region**
. preserve
{txt}
{com}. forvalues x=1/5 {c -(}
{txt}  2{com}. clear all
{txt}  3{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}  4{com}. keep if region==`x'
{txt}  5{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}  6{com}. gen total=male+female
{txt}  7{com}. gen prcmale=male/total*100
{txt}  8{com}. sum prcmale
{txt}  9{com}. {c )-}
{txt}(30,030 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         38    80.74617    10.04906   52.06612   97.14286
{txt}(32,538 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         24    79.35068    8.555772   58.53659   93.43066
{txt}(28,291 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         26    84.22029    6.502343   71.85185    98.3871
{txt}(27,355 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         41    76.68266    10.24132   52.70936   92.79476
{txt}(34,126 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         16    92.25652    6.767468   74.68355        100
{txt}
{com}. restore
{txt}
{com}. ** By Regime**
. **Democracy**
. preserve
{txt}
{com}. keep if regime==0
{txt}(10,944 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        113    80.23609    9.626276   52.70936    98.3871
{txt}
{com}. restore
{txt}
{com}. **Non-democracies**
. preserve
{txt}
{com}. keep if regime==1
{txt}(27,141 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         32    84.87228    10.72238   52.06612        100
{txt}
{com}. restore
{txt}
{com}. 
. ***Row 3: Marital Status***ASK JOHN 
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if marital_status==.
{txt}(15,234 observations deleted)

{com}. /*gen temp=1
> sort country_nid 
> by country_nid: egen married_persons=total(temp)
> gen percent=married_persons/country_num_persons
> drop if percent<0.75*/
. gen married=0
{txt}
{com}. replace married=1 if marital_status==2
{txt}(20,789 real changes made)

{com}. gen nonmarried=0
{txt}
{com}. replace nonmarried=1 if marital_status==1|marital_status==3|marital_status==4
{txt}(2,062 real changes made)

{com}. sort marital_status 
{txt}
{com}. preserve
{txt}
{com}. collapse (sum) married=married nonmarried=nonmarried, by(country country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        145    90.98392    8.250886   54.83871        100
{txt}
{com}. restore
{txt}
{com}. //Offices
. **Apex**
. preserve
{txt}
{com}. keep if power==1
{txt}(22,649 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        143    89.16084    27.28299          0        100
{txt}
{com}. restore
{txt}
{com}. **Top Ten**
. preserve
{txt}
{com}. keep if power==3
{txt}(21,918 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        141    90.58201    14.99778          0        100
{txt}
{com}. restore
{txt}
{com}. **cabinet**
. preserve
{txt}
{com}. keep if office1==2 |office2==2| office3==2
{txt}(20,367 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        143     92.2466    12.56865          0        100
{txt}
{com}. restore
{txt}
{com}. **Supreme Court**
. preserve
{txt}
{com}. keep if office1==7 |office2==7| office3==7
{txt}(22,392 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         98     92.2585    19.01724          0        100
{txt}
{com}. restore
{txt}
{com}. **MPs**
. preserve
{txt}
{com}. keep if office1==6 |office2==6| office3==6
{txt}(4,143 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        141    89.74648    12.44811          0        100
{txt}
{com}. restore
{txt}
{com}. //Wealth
. **nonoecd**
. preserve
{txt}
{com}. keep if wealth==0
{txt}(6,604 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        112    92.15091    8.528009   54.83871        100
{txt}
{com}. restore
{txt}
{com}. **oecd**
. preserve
{txt}
{com}. keep if wealth==1
{txt}(16,247 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         33    87.02324    5.756015   76.72414    98.0198
{txt}
{com}. restore
{txt}
{com}. //Region 
. preserve 
{txt}
{com}. forvalues x=1/5 {c -(}
{txt}  2{com}. clear all
{txt}  3{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}  4{com}. gen married=0
{txt}  5{com}. replace married=1 if marital_status==2
{txt}  6{com}. gen nonmarried=0
{txt}  7{com}. replace nonmarried=1 if marital_status==1|marital_status==3|marital_status==4
{txt}  8{com}. keep if region==`x'
{txt}  9{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt} 10{com}. gen total=married+nonmarried
{txt} 11{com}. gen prcmarried=married/total*100
{txt} 12{com}. sum prcmarried
{txt} 13{com}. {c )-}
{txt}(20,789 real changes made)
(2,062 real changes made)
(30,030 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         38    92.85807    8.725393   54.83871        100
{txt}(20,789 real changes made)
(2,062 real changes made)
(32,538 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         24    85.50711    8.846158   65.03268        100
{txt}(20,789 real changes made)
(2,062 real changes made)
(28,291 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         26    94.46794    5.686414   79.33492        100
{txt}(20,789 real changes made)
(2,062 real changes made)
(27,355 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         41    87.71469    6.967939   73.94636        100
{txt}(20,789 real changes made)
(2,062 real changes made)
(34,126 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         16    97.46389     3.23394   90.90909        100
{txt}
{com}. restore
{txt}
{com}. //Regime
. **Democracy**
. preserve
{txt}
{com}. keep if regime==0
{txt}(5,991 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        113    89.48397    8.482957   54.83871        100
{txt}
{com}. restore
{txt}
{com}. **Authoriatarian**
. preserve
{txt}
{com}. keep if regime==1
{txt}(16,860 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total*100
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         32    96.28062    4.368245   82.17054        100
{txt}
{com}. restore
{txt}
{com}. 
. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. ********TABLE 3*************Languages 10 
. 
. ***Row 1****
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. rename person_lang_all_count langcount
{res}{txt}
{com}. drop if langcount==0
{txt}(2,606 observations deleted)

{com}. sort country_nid
{txt}
{com}. preserve
{txt}
{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        144    1.905722    .8016862          1   4.526667
{txt}
{com}. restore
{txt}
{com}. **apex**
. preserve
{txt}
{com}. keep if power==1
{txt}(35,282 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        142    2.246479    1.078064          1          5
{txt}
{com}. restore
{txt}
{com}. **next 10**
. preserve
{txt}
{com}. keep if power==3
{txt}(34,326 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        141    2.125713    .8477121          1   5.222222
{txt}
{com}. restore
{txt}
{com}. **cabinet**
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,139 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        144    2.079132    .8337299          1   5.083333
{txt}
{com}. restore
{txt}
{com}. **Supreme court**
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,539 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        132    1.848484    .9209953          1        5.5
{txt}
{com}. restore
{txt}
{com}. **MPs**
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        144    1.858887    .8027348          1   4.344828
{txt}
{com}. restore
{txt}
{com}. **Wealth**
. *oecd*
. preserve
{txt}
{com}. keep if wealth==1
{txt}(25,334 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         33    1.646831    .7630117          1   4.495495
{txt}
{com}. restore
{txt}
{com}. *nonoecd*
. preserve
{txt}
{com}. keep if wealth==0
{txt}(10,145 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        111     1.98269    .8000389          1   4.526667
{txt}
{com}. restore
{txt}
{com}. **Regime**
. *Democracy*
. preserve
{txt}
{com}. keep if regime==0
{txt}(10,598 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        112    1.905208    .8119911          1   4.526667
{txt}
{com}. count
  {res}112
{txt}
{com}. restore
{txt}
{com}. *Nondemocracy*
. preserve
{txt}
{com}. keep if regime==1
{txt}(24,881 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         32    1.907522    .7771016   1.005102   4.240602
{txt}
{com}. restore
{txt}
{com}. *regions
. preserve
{txt}
{com}. keep if wealth==0
{txt}(10,145 observations deleted)

{com}. collapse (mean) langcount=langcount, by (region country_nid)
{txt}
{com}. by region, sort: sum langcount

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         37     2.21757    .8945189          1   4.240602

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         20    1.440468    .4386576          1        2.6

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         22    2.167118    .6803597    1.11875   3.904762

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         18    2.177658    .9095044   1.087935   4.526667

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         14    1.596052    .4570146   1.005102   2.332518

{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. ***Rows on Languages***
. **English**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen eng=0
{txt}
{com}. replace eng=1 if english==1
{txt}(10,068 real changes made)

{com}. gen noeng=0
{txt}
{com}. replace noeng=1 if english==0
{txt}(25,410 real changes made)

{com}. //collapse (sum) eng=noeng, by(country_nid)
. preserve
{txt}
{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        144    36.49928    37.28766          0        100
{txt}
{com}. gen avgeng=r(mean)
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        142     58.4507    46.87838          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        141    49.62362    36.59608          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        144    49.15184    37.67438          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        132     34.8423    42.48758          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        144    33.64225    38.56008          0        100
{txt}
{com}. restore
{txt}
{com}. *Wealth/Region/Regime*
. preserve
{txt}
{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid regime wealth region)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        144    36.49928    37.28766          0        100
{txt}
{com}. gen avgeng=r(mean)
{txt}
{com}. sum prceng if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        111    33.83322    36.51979          0        100
{txt}
{com}. sum prceng if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         33    45.46693    39.00064          0        100
{txt}
{com}. sum prceng if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        112      39.354    37.83195          0        100
{txt}
{com}. sum prceng if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         32    26.50774    34.00476          0   98.83721
{txt}
{com}. by region, sort: sum prceng 

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         37    37.25208    42.58388          0        100

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         24    31.24095    38.65168          0        100

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         26    38.29518    38.44657          0   99.71014

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         41    40.00272    33.45234          0        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         16    30.74999    32.31475          0   96.36364

{txt}
{com}. 
. sum prcfrench if regime==1
{err}variable {bf}prcfrench{sf} not found
{txt}{search r(111), local:r(111);}

end of do-file

{search r(111), local:r(111);}

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **French**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen fren=0
{txt}
{com}. replace fren=1 if french==1
{txt}(5,953 real changes made)

{com}. gen nofren=0
{txt}
{com}. replace nofren=1 if french==0
{txt}(29,525 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sort fren
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        144    19.13816    34.60499          0        100
{txt}
{com}. gen avgfrench=r(mean)
{txt}
{com}. sort prcfrench
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        142    20.77465    38.70371          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        141    22.89086    35.66154          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        144     22.3738    35.85641          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        132    19.79732    36.25495          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        144    18.26392     34.7545          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid wealth regime region)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sort fren
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        144    19.13816    34.60499          0        100
{txt}
{com}. sum prcfrench if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        111    20.47014    36.55169          0        100
{txt}
{com}. sum prcfrench if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         33    14.65788    27.05379          0        100
{txt}
{com}. sum prcfrench if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        112    17.12307    32.61492          0        100
{txt}
{com}. sum prcfrench if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         32      26.191    40.60919          0        100
{txt}
{com}. by region, sort: sum prcfrench

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         37    43.95629     46.7777          0        100

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         24    8.103713    22.80049          0        100

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         26    2.397922    6.557365          0   33.83838

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         41    12.77482    23.43055          0        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         16    21.80687    38.90679          0        100

{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **Spanish**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen span=0
{txt}
{com}. replace span=1 if spanish==1
{txt}(4,399 real changes made)

{com}. gen nospan=0
{txt}
{com}. replace nospan=1 if spanish==0
{txt}(31,079 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) span=span nospan=nospan, by (country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        144    14.09579    33.56418          0        100
{txt}
{com}. gen avgspan=r(mean)
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        142    13.02817    32.98376          0        100
{txt}
{com}. restore
{txt}
{com}. *Next 10*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        141    14.60187    33.80379          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. sort span
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        144    14.83544    34.09436          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        132    14.53239    34.70081          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs* 
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        144    13.74857    33.75648          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) span=span nospan=nospan, by (country country_nid wealth regime region)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        144    14.09579    33.56418          0        100
{txt}
{com}. sum prcspan if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        111    16.13379    35.78607          0        100
{txt}
{com}. sum prcspan if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         33    7.240705    23.85816          0        100
{txt}
{com}. sum prcspan if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        112    17.16904    36.36265          0        100
{txt}
{com}. sum prcspan if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         32    3.339432    17.56844          0   99.55817
{txt}
{com}. by region, sort: sum prcspan

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         37    3.438349    16.58115          0        100

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         24    72.82587    42.79794          0        100

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         26    .2435537    .6446606          0   2.380952

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         41    3.479274    15.36251          0   99.21671

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         16    .3607164     .743333          0   2.469136

{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **Arabic**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen arab=0
{txt}
{com}. replace arab=1 if arabic==1
{txt}(3,815 real changes made)

{com}. gen noarab=0
{txt}
{com}. replace noarab=1 if arabic==0
{txt}(31,663 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) arab=arab noarab=noarab, by (country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        144    11.77085    30.94349          0        100
{txt}
{com}. gen avgarab=r(mean)
{txt}
{com}. sort prcarab
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        142    9.859155    29.91681          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        141    11.97062    30.22085          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        144    11.94511    30.78153          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        132    12.01073    31.97459          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        144    11.81377    31.12206          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) arab=arab noarab=noarab, by (country country_nid wealth regime region)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        144    11.77085    30.94349          0        100
{txt}
{com}. sum prcarab if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        111    14.91634    34.57574          0        100
{txt}
{com}. sum prcarab if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         33    1.190565    4.426935          0   21.60494
{txt}
{com}. sum prcarab if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        112     5.00372    20.30332          0        100
{txt}
{com}. sum prcarab if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         32     35.4558     46.8647          0        100
{txt}
{com}. by region, sort: sum prcarab

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         37    8.757647    26.80624          0    99.3311

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         24    .0226449     .110937          0   .5434783

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         26    .4968324    1.163196          0   4.705883

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         41    .3270331    .9675832          0   5.494505

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         16    84.00623    31.80409   14.33962        100

{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **Russian**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen rus=0
{txt}
{com}. replace rus =1 if russian==1
{txt}(2,834 real changes made)

{com}. gen norus=0
{txt}
{com}. replace norus=1 if russian==0
{txt}(32,644 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        144     11.2234     28.9212          0        100
{txt}
{com}. gen avgrus=r(mean)
{txt}
{com}. sort prcrus
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        142    13.02817    32.98376          0        100
{txt}
{com}. restore
{txt}
{com}. **Top Ten**
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        141     12.9538    30.38109          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        144    12.16065     29.9044          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        132     9.06157    26.93367          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs* 
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        144    11.07965    28.89475          0        100
{txt}
{com}. restore
{txt}
{com}. *Wealth/Region/Regime*
. preserve
{txt}
{com}. collapse (sum) rus=rus norus=norus, by (country country_nid wealth regime region)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        144     11.2234     28.9212          0        100
{txt}
{com}. sum prcrus if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        111    12.99577    31.38401          0        100
{txt}
{com}. sum prcrus if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         33    5.261816    17.44967          0   96.69421
{txt}
{com}. sum prcrus if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        112    10.10891     27.0368          0        100
{txt}
{com}. sum prcrus if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         32    15.12412    34.93987          0        100
{txt}
{com}. by region, sort: sum  prcrus

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         37    .1705802    .4607442          0   1.910828

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         24    .4149495    1.106226          0   4.712813

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         26    30.64138    43.62013          0        100

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         41     19.2417    35.49941          0        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         16    .8946459    2.921945          0    11.7284

{txt}
{com}. restore
{txt}
{com}. if regime==1
{err}{c -(} required
{txt}{search r(100), local:r(100);}

end of do-file

{search r(100), local:r(100);}

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **German**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen ger=0
{txt}
{com}. replace ger =1 if german==1
{txt}(1,865 real changes made)

{com}. gen noger=0
{txt}
{com}. replace noger=1 if german==0
{txt}(33,613 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. replace prcger =round(prcger)
{txt}(64 real changes made)

{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        144       4.875    16.65691          0        100
{txt}
{com}. gen avgger=r(mean)
{txt}
{com}. sort prcger
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        142    7.042254    22.74711          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        141    4.937316    16.64976          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet* 
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        144    5.678253    17.53178          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        132    4.182892    17.51168          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        144    4.809955    16.75808          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) ger=ger noger=noger, by (country country_nid wealth region regime)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. replace prcger =round(prcger)
{txt}(64 real changes made)

{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        144       4.875    16.65691          0        100
{txt}
{com}. sum prcger if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        111    1.315315    3.176568          0         18
{txt}
{com}. sum prcger if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         33    16.84848    31.83367          0        100
{txt}
{com}. sum prcger if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        112    6.133929    18.70275          0        100
{txt}
{com}. sum prcger if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         32      .46875    1.269604          0          6
{txt}
{com}. by region, sort: sum  prcger

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         37    .1351351    .4191368          0          2

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         24        .375    .7696696          0          3

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         26    1.038462     2.18139          0          8

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         41    15.78049    28.55391          0        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         16        .875     2.47319          0         10

{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **Portuguese**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen por=0
{txt}
{com}. replace por =1 if portuguese==1
{txt}(1,273 real changes made)

{com}. gen nopor=0
{txt}
{com}. replace nopor=1 if portuguese==0
{txt}(34,205 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        144    3.827685    17.91298          0        100
{txt}
{com}. gen avgpor=r(mean)
{txt}
{com}. sort prcpor
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        142    4.225352    20.18791          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        141    4.121355    19.01663          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        144    4.251811    18.35393          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        132    4.739057    20.42054          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        144    3.704937      17.739          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) por=por nopor=nopor, by (country country_nid wealth regime region)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        144    3.827685    17.91298          0        100
{txt}
{com}. sum prcpor if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        111    4.019608    18.14022          0        100
{txt}
{com}. sum prcpor if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         33    3.182124    17.38341          0        100
{txt}
{com}. sum prcpor if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        112    4.174961     18.8965          0        100
{txt}
{com}. sum prcpor if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         32    2.612218    14.12926          0         80
{txt}
{com}. by region, sort: sum  prcpor

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         37    7.537984    25.69741          0   99.25373

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         24    4.895542    20.31037          0        100

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         26    1.806406    8.862135          0   45.23809

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         41    2.599685    15.59632          0        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         16    .0771605     .308642          0   1.234568

{txt}
{com}. restore
{txt}
{com}. n if regime==0
{err}{c -(} required
{txt}{search r(100), local:r(100);}

end of do-file

{search r(100), local:r(100);}

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **Chinese**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen chin=0
{txt}
{com}. replace chin=1 if chinese==1
{txt}(3,278 real changes made)

{com}. gen nochin=0
{txt}
{com}. replace nochin=1 if chinese==0
{txt}(32,200 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        144     1.55248    11.00046          0    99.6124
{txt}
{com}. gen avgchin=r(mean)
{txt}
{com}. sort prcchin
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        142    1.408451    11.82566          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        141     1.78093    11.57209          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        144    1.698541    11.45433          0   98.66666
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        132    1.464646    11.31144          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        144    1.517282    11.04073          0   99.69676
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid wealth regime region)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        144     1.55248    11.00046          0    99.6124
{txt}
{com}. sum prcchin if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        111    2.007535    12.50599          0    99.6124
{txt}
{com}. sum prcchin if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         33    .0218409     .072364          0   .3215434
{txt}
{com}. sum prcchin if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        112    1.075615    8.270842          0   84.21053
{txt}
{com}. sum prcchin if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         32    3.221511     17.5946          0    99.6124
{txt}
{com}. by region, sort: sum  prcchin

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         37           0           0          0          0

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         24    .0221696    .0768725          0   .3215434

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         26    8.570632    25.09301          0    99.6124

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         41           0           0          0          0

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         16    .0117925    .0471698          0   .1886792

{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **Other**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(2,607 observations deleted)

{com}. gen oth=0
{txt}
{com}. replace oth =1 if otherlang==1
{txt}(23,841 real changes made)

{com}. gen nooth=0
{txt}
{com}. replace nooth=1 if otherlang==0
{txt}(11,637 real changes made)

{com}. preserve
{txt}
{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        144    74.56034     38.7768          0        100
{txt}
{com}. gen avgoth=r(mean)
{txt}
{com}. sort prcother
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(35,281 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        142    73.94366    43.23706          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(34,325 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        141    75.93775    38.33661          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(32,138 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        144    74.74049      38.669          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(34,538 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        132    71.85179    43.01322          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(6,220 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        144    74.67006    38.90368          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid wealth regime region)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        144    74.56034     38.7768          0        100
{txt}
{com}. sum prcother if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        111    75.21786    38.01845          0        100
{txt}
{com}. sum prcother if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         33    72.34867    41.76455   .3984064        100
{txt}
{com}. sum  prcother if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        112    80.10347    34.88802          0        100
{txt}
{com}. sum  prcother if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         32    55.15938    45.58872          0        100
{txt}
{com}. by region, sort: sum  prcother

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         37    77.62763    30.97854   5.859375        100

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         24    77.37035    39.87436          0        100

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         26    85.48131    30.99562   8.955224        100

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         41    83.37727    34.47571   .3984064        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         16    22.91226    39.01785          0        100

{txt}
{com}. restore
{txt}
{com}. ll
{err}command {bf}ll{sf} is unrecognized
{txt}{search r(199), local:r(199);}

end of do-file

{search r(199), local:r(199);}

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. 
. 
. ********TABLE 4*************
. ***Row1:>educational Attainment***
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if edulevel==0
{txt}(8,370 observations deleted)

{com}. preserve
{txt}
{com}. collapse (mean) edulevel=edulevel, by(country country_nid) //to see number of countries
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        145    4.332388    .4036533   3.111111     5.3125
{txt}
{com}. restore
{txt}
{com}. **Apex**
. preserve
{txt}
{com}. keep if power==1
{txt}(29,516 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        141    4.421986     1.13434          1          6
{txt}
{com}. restore
{txt}
{com}. **Top Ten**
. preserve
{txt}
{com}. keep if power==3
{txt}(28,638 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        142    4.530921    .4686583       3.25      5.625
{txt}
{com}. restore
{txt}
{com}. **Cabinet**
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(26,524 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        144    4.613854    .4217137   3.272727   5.428571
{txt}
{com}. restore
{txt}
{com}. **Supreme Court***
. preserve
{txt}
{com}. keep if office1==7|office2==7|office3==7
{txt}(28,806 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        126    4.823542    .6105781          4          6
{txt}
{com}. restore
{txt}
{com}. **MPs**
. preserve
{txt}
{com}. keep if office1==6|office2==6|office3==6
{txt}(5,713 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        144    4.237325    .4652073   2.920635        5.5
{txt}
{com}. restore
{txt}
{com}. **Wealth**
. *nonOECD*
. preserve
{txt}
{com}. keep if wealth==0
{txt}(9,590 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        112    4.361704    .4247536   3.111111     5.3125
{txt}
{com}. restore
{txt}
{com}. *OECD*
. preserve
{txt}
{com}. keep if wealth==1
{txt}(20,125 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         33    4.232891    .3068852   3.604762   4.871345
{txt}
{com}. restore
{txt}
{com}. **Regime**
. *Democracy*
. preserve
{txt}
{com}. keep if regime==0
{txt}(8,272 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        113    4.328464    .3739421   3.111111     5.3125
{txt}
{com}. restore
{txt}
{com}. *nondemocracy*
. preserve
{txt}
{com}. keep if regime==1
{txt}(21,443 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         32    4.346243    .5014058   3.393701       5.12
{txt}
{com}. restore
{txt}
{com}. *Regions
. preserve
{txt}
{com}. collapse (mean) edulevel =edulevel, by(region country_nid)
{txt}
{com}. by region, sort: sum edulevel

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         38    4.174377    .4786303   3.111111     5.3125

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         24    4.348592    .3215626   3.743421   5.176471

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         26     4.37095    .3869816   3.609375   4.973856

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         41     4.33791    .3354592   3.604762   4.869969

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         16    4.606543    .3799625   3.757098       5.12

{txt}
{com}. restore
{txt}
{com}. 
. ***Row 2: Edu Abroad***
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if person_abroad==.
{txt}(16,322 observations deleted)

{com}. gen eduabroad=0
{txt}
{com}. replace eduabroad=1 if person_abroad==1
{txt}(3,685 real changes made)

{com}. gen eduhome=0
{txt}
{com}. replace eduhome=1 if person_abroad==0
{txt}(18,078 real changes made)

{com}. sort country_nid
{txt}
{com}. //Descriptive
. count
  {res}21,763
{txt}
{com}. preserve
{txt}
{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    31.75374    27.81197          0        100
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(21,584 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        132    39.39394    46.24458          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(20,803 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        141    37.08242    30.46364          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2| office3==2
{txt}(19,015 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        144    37.36787    28.87154          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7| office3==7
{txt}(20,990 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        115    28.18143     36.1784          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6| office3==6
{txt}(4,815 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        141    27.60832      29.681          0        100
{txt}
{com}. sort total
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (wealth regime region country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    31.75374    27.81197          0        100
{txt}
{com}. sort country_nid
{txt}
{com}. sum prcabroad if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        112    37.39701    28.02914   .3787879        100
{txt}
{com}. sum prcabroad if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         33    12.60083    16.30497          0   89.28571
{txt}
{com}. sum prcabroad if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        113    27.52339    24.91547          0   94.91525
{txt}
{com}. sum prcabroad if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         32    46.69217    32.47538   .3787879        100
{txt}
{com}. by region, sort: sum  prcabroad

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         38    51.05087    26.57227   9.523809        100

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         24    20.86718    15.42462   .6329114   57.14286

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         26    27.59398    24.38624   1.392111   92.30769

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         41    15.84013    21.03985          0   94.91525

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         16    49.79117     30.7463   10.16949   89.65517

{txt}
{com}. restore
{txt}
{com}. 
. ***Row 3: Edu in West***
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. sort person_nid 
{txt}
{com}. drop if person_eduwest==.
{txt}(16,322 observations deleted)

{com}. gen eduwest=0
{txt}
{com}. replace eduwest=1 if person_eduwest==1
{txt}(9,998 real changes made)

{com}. gen eduhome=0
{txt}
{com}. replace eduhome=1 if person_eduwest==0
{txt}(11,765 real changes made)

{com}. sort country_nid
{txt}
{com}. preserve
{txt}
{com}. count
  {res}21,763
{txt}
{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        145    48.59229    36.55104          0        100
{txt}
{com}. sort prcwest
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(21,584 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        132    57.57576    48.04771          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(20,803 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        141     53.7901    37.74177          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2| office3==2
{txt}(19,015 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        144    53.11093    35.11735          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7| office3==7
{txt}(20,990 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        115    48.17471    44.55962          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6| office3==6
{txt}(4,815 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        141    45.36779    39.86009          0        100
{txt}
{com}. restore
{txt}
{com}. **Wealth/Region/Regime**
. preserve
{txt}
{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (regime region wealth country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sort country_nid
{txt}
{com}. sum prcwest if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        112    39.21543    31.10762          0        100
{txt}
{com}. sum prcwest if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         33    80.41681    36.09793   7.453416        100
{txt}
{com}. sum prcwest if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        113    53.42722    37.94175   3.324808        100
{txt}
{com}. sum prcwest if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         32    31.51896    24.87317          0        100
{txt}
{com}. by region, sort: sum  prcwest

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         38    37.02567    22.44131          0         85

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         24    23.79892    26.53316   3.324808        100

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         26    27.12888    26.98333   1.392111        100

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         41    93.79811    19.25795   7.453416        100

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         16    32.29123    17.63599   8.474576   62.06897

{txt}
{com}. restore
{txt}
{com}. 
. 
. ***Rows:Disciplines 11***
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. /*1     "agronomy"
> 2"economics / business / management"
> 3"engineering"
> 4"mathematics / computer science"
> 5"biology/chemistry/physics"
> 6"humanities"
> 7"social sciences"
> 8"law"
> 9"medicine"
> 10"military"
> 11"other"*/
. gen temp=1
{txt}
{com}. drop if edumajor1==0
{txt}(12,895 observations deleted)

{com}. count
  {res}25,190
{txt}
{com}. count if power==1
  {res}183
{txt}
{com}. count if power==3
  {res}1,016
{txt}
{com}. count if office1==2|office2==2|office3==2
  {res}2,932
{txt}
{com}. count if office1==7|office2==7|office3==7
  {res}928
{txt}
{com}. count if office1==6|office2==6|office3==6
  {res}19,879
{txt}
{com}. count if wealth==0
  {res}16,621
{txt}
{com}. count if wealth==1
  {res}8,569
{txt}
{com}. count if region==1
  {res}3,461
{txt}
{com}. count if region==2
  {res}4,089
{txt}
{com}. count if region==3
  {res}6,860
{txt}
{com}. count if region==4
  {res}8,801
{txt}
{com}. count if region==5
  {res}1,979
{txt}
{com}. count if regime==0
  {res}19,310
{txt}
{com}. count if regime==1
  {res}5,880
{txt}
{com}. 
. **Agronomy**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(24424 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=agron/alldegrees*100
{txt}(24,424 missing values generated)

{com}. keep if agron<.
{txt}(24,424 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(652 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              31
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              31{txt}  (_merge==2)

{col 5}matched{col 30}{res}             114{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(31 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.184162    3.127223          0   12.19512
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}3.184162198880623
                {txt}r(Var) =  {res}9.779520995888314
                 {txt}r(sd) =  {res}3.127222568972076
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}12.19512176513672
                {txt}r(sum) =  {res}461.7035188376904
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.114114    3.105154          0   12.19512
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    3.204801    3.147282          0   12.19512
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    3.112002    3.070172          0   12.19512
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    3.438978    3.359522          0         10
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    3.442123    3.292049          0   11.11111

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.795591    2.570887          0     7.8125

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    4.164563    3.528995          0   10.81081

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.330382    3.242085          0   12.19512

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    1.186523    1.356078          0   3.571429

{txt}
{com}. restore
{txt}
{com}. 
. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(180 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(180 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(180 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    1.515152    10.59201          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(1008 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(1,008 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,008 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    .6997795    3.001882          0         20
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(2851 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(2,851 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,851 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    2.984165    4.600221          0      18.75
{txt}
{com}. restore
{txt}
{com}. *Supreme court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(928 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(928 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(928 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127           0           0          0          0
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(19226 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(19,226 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(19,226 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    3.704345     4.68117          0   33.33333
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////////////////////////////////////////
> **Econ/Bus/Man**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(19994 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=econ/alldegrees*100
{txt}(19,994 missing values generated)

{com}. keep if econ<.
{txt}(19,994 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,051 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    22.17472    8.067283   3.888889   58.82353
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}22.17471551237435
                {txt}r(Var) =  {res}65.08105192478905
                 {txt}r(sd) =  {res}8.067282809272838
                {txt}r(min) =  {res}3.888888835906982
                {txt}r(max) =  {res}58.82352828979492
                {txt}r(sum) =  {res}3215.333749294281
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    19.40982      6.0327   10.88435   38.03681
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    22.98937     8.42587   3.888889   58.82353
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    21.69792    8.154137   3.888889   58.82353
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32     23.8584    7.637757   10.58823   38.04348
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38      24.475    9.497252   6.060606   58.82353

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    22.29531    9.014342   11.34216         50

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    23.36761    6.668194    9.85325   38.03681

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    19.32231    5.667573   7.692307    33.9416

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    21.90148    8.928382   3.888889     34.375

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(121 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(121 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(121 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132     34.4697     44.1772          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(774 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(774 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(774 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    23.88434    17.87717          0   66.66666
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(2176 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(2,176 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,176 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    26.23674     12.6785          0   66.66666
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(915 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(915 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(915 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    1.870712    10.68774          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(15756 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(15,756 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(15,756 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    22.51654    13.05152          0        100
{txt}
{com}. restore
{txt}
{com}. ////////////////////////////////////////////
> **Engineering**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(22843 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=eng/alldegrees*100
{txt}(22,843 missing values generated)

{com}. keep if eng<.
{txt}(22,843 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(2,207 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               5
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               5{txt}  (_merge==2)

{col 5}matched{col 30}{res}             140{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(5 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.109847    6.135929          0       32.5
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}9.109846633056115
                {txt}r(Var) =  {res}37.6496189004221
                 {txt}r(sd) =  {res}6.135928527975379
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}32.5
                {txt}r(sum) =  {res}1320.927761793137
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    7.005184    5.377486   .5649717   19.25466
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     9.72997    6.229068          0       32.5
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    8.766946     6.19015          0       32.5
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    10.32071    5.874301    2.12766         25
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38     6.15218    3.698889          0   12.90323

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    8.403605    4.767562          0   16.93989

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    11.41837     8.49295          0       32.5

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    9.836601    5.886336   .5649717   23.05296

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    11.58001    6.330318   3.448276         25

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(174 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(174 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(174 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    4.545455    17.96365          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(923 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(923 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(923 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    9.110064    12.20812          0         50
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(2614 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(2,614 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,614 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    10.27674    10.38488          0         50
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(925 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(925 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(925 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    .9027281    8.913168          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(17998 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(17,998 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(17,998 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    8.936145    7.484003          0   42.85714
{txt}
{com}. restore
{txt}
{com}. //////////////////////////////////////////////////
> **Math-CS**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(24826 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=math/alldegrees*100
{txt}(24,826 missing values generated)

{com}. keep if math<.
{txt}(24,826 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(262 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              43
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              43{txt}  (_merge==2)

{col 5}matched{col 30}{res}             102{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(43 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.550967    1.642027          0   9.090909
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}1.550966952895296
                {txt}r(Var) =  {res}2.696253163643449
                 {txt}r(sd) =  {res}1.64202715070228
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}9.090909004211426
                {txt}r(sum) =  {res}224.8902081698179
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.234464     1.01473          0   3.225806
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    1.644222    1.778326          0   9.090909
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.380818    1.384083          0   6.451613
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    2.151804    2.263882          0   9.090909
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    1.501952    1.863611          0   6.451613

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    .8311114    .8429881          0   2.941176

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    1.665795    1.493163          0   5.479452

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    1.482421    1.171985          0   4.464286

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    2.736215    2.545487          0   9.090909

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(177 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(177 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(177 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    2.651515    12.83244          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(1003 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(1,003 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,003 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142     1.33691    4.496569          0         25
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(2887 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(2,887 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,887 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    1.451481     3.03897          0         20
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(926 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(926 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(926 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    .1531059    1.227736          0   11.11111
{txt}
{com}. restore
{txt}
{com}. *MPs
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(19573 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(19,573 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(19,573 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144     1.44478    1.873656          0       12.5
{txt}
{com}. restore
{txt}
{com}. //////////////////////////////////////////////////
> **Bio/Chem/Phys**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(24459 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=bio/alldegrees*100
{txt}(24,459 missing values generated)

{com}. keep if bio<.
{txt}(24,459 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(609 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              23
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              23{txt}  (_merge==2)

{col 5}matched{col 30}{res}             122{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(23 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.802562     2.41311          0    17.3913
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.802562035363296
                {txt}r(Var) =  {res}5.823099754916375
                 {txt}r(sd) =  {res}2.413109975719378
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}17.39130401611328
                {txt}r(sum) =  {res}406.3714951276779
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33     2.69512    1.783893          0   6.086957
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    2.834219    2.575352          0    17.3913
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.790668    2.481709          0    17.3913
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    2.844561    2.189853          0   8.695652
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    3.050984    2.639564          0   9.756098

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.179924    3.459234          0    17.3913

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    2.923959    1.778844          0   7.756814

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    2.771003    1.839277          0   5.737705

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    3.030115    2.283052          0          8

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(176 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(176 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(176 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    2.651515    14.24217          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(984 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(984 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(984 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    3.087134    6.321358          0         25
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(2847 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(2,847 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,847 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    2.869988    4.345454          0         20
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(925 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(925 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(925 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    .1124859    1.267652          0   14.28571
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(19265 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(19,265 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(19,265 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    2.708631    2.819758          0         20
{txt}
{com}. restore
{txt}
{com}. //////////////////////////////////////////////////
> **Humanities**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(22858 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=humanities/alldegrees*100
{txt}(22,858 missing values generated)

{com}. keep if humanities<.
{txt}(22,858 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(2,195 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               8
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               8{txt}  (_merge==2)

{col 5}matched{col 30}{res}             137{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(8 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    8.848121    6.572605          0   45.94595
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}8.848120649929704
                {txt}r(Var) =  {res}43.19913222263578
                 {txt}r(sd) =  {res}6.572604675669744
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}45.94594573974609
                {txt}r(sum) =  {res}1282.977494239807
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    9.883505    5.392497   1.694915   21.47239
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    8.543052    6.873599          0   45.94595
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    9.032779     6.75877          0   45.94595
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    8.196047    5.921385          0   21.73913
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    8.323942    6.064946          0   22.54902

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    6.028568    4.393354          0   13.52459

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    12.09384    9.707559   .5681818   45.94595

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    9.351028    5.358449          0   23.00885

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    7.759382    5.207914          0   18.18182

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(174 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(174 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(174 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    4.166667    17.51953          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(945 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(945 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(945 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    6.829944     10.1013          0         50
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(2685 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(2,685 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,685 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    8.515108    8.523602          0         50
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(895 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(895 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(895 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    2.457249    7.980763          0         50
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(17946 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(17,946 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(17,946 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144     10.4371    11.38058          0        100
{txt}
{com}. restore
{txt}
{com}. /////////////////////////////////////////////////
> **Social Sciences**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(22282 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=socsci/alldegrees*100
{txt}(22,282 missing values generated)

{com}. keep if socsci<.
{txt}(22,282 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(2,771 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               8
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               8{txt}  (_merge==2)

{col 5}matched{col 30}{res}             137{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(8 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    11.67341    8.115875          0   33.33333
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}11.67341058336455
                {txt}r(Var) =  {res}65.86743304362408
                 {txt}r(sd) =  {res}8.115875371370858
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}33.33333206176758
                {txt}r(sum) =  {res}1692.64453458786
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    15.15257    6.902825   3.738318   27.98834
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     10.6483    8.188653          0   33.33333
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    11.84755    8.362568          0   33.33333
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    11.05847    7.266667          0   29.41176
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    11.84261    7.451285   .7751938   29.41176

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    11.82094    9.379668          0   33.33333

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    11.78186    9.720209          0   31.03448

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    11.94116    7.653829          0   26.59575

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    10.18793    6.641505          0     21.875

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(157 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(157 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(157 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    14.77273    32.53808          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(869 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(869 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(869 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    14.83131    18.49427          0         75
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(2570 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(2,570 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,570 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    11.86271    11.92928          0   82.35294
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(877 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(877 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(877 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    3.765024     13.6163          0   77.77778
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(17575 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(17,575 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(17,575 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    12.57894      10.362          0         50
{txt}
{com}. restore
{txt}
{com}. ////////////////////////////////////////
> **Law degree**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(19974 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=law/alldegrees*100
{txt}(19,974 missing values generated)

{com}. keep if law<.
{txt}(19,974 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,071 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    21.40418    10.35076   2.352941   54.41177
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}21.40417814419187
                {txt}r(Var) =  {res}107.1382302776258
                 {txt}r(sd) =  {res}10.35075988889829
                {txt}r(min) =  {res}2.352941274642944
                {txt}r(max) =  {res}54.41176605224609
                {txt}r(sum) =  {res}3103.605830907822
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    23.88677    9.499643    7.97546   42.99065
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     20.6727    10.51674   2.352941   54.41177
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    22.50798    10.34938   2.352941   54.41177
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    17.50639    9.517009   4.564533   54.11765
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    20.20826    10.84899   9.210526   54.11765

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    28.69798    10.81577    6.04915   54.41177

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    17.33112    8.193512   2.352941   39.05229

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    21.89579    9.621299   4.878049   48.35165

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    18.66275    8.597201       6.25         31

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(150 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(150 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(150 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    17.04545    33.74214          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(768 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(768 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(768 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    23.04712    18.95325          0   71.42857
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(2439 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(2,439 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,439 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    17.37127    11.91632          0         50
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(109 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(109 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(109 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    90.36249    23.31767          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(16403 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(16,403 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(16,403 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    16.32638    10.67404          0   47.22222
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////////////////
> **Medicine**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(23665 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=med/alldegrees*100
{txt}(23,665 missing values generated)

{com}. keep if med<.
{txt}(23,665 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,387 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               7
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               7{txt}  (_merge==2)

{col 5}matched{col 30}{res}             138{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(7 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.352528    3.929163          0   24.59016
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}6.352528136763079
                {txt}r(Var) =  {res}15.43831834453062
                 {txt}r(sd) =  {res}3.929162550026484
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}24.59016418457031
                {txt}r(sum) =  {res}921.1165798306465
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    4.868731      3.2555   .7272727   13.45178
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    6.789718    4.015635          0   24.59016
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    6.404546    3.977345          0   24.59016
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32     6.16884    3.809894          0         12
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    6.548416    3.861807          0     15.625

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    6.359296    2.876965          0   10.71429

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    5.141727    2.592381   .6535948   9.009009

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    6.946764    4.851232   .7272727   24.59016

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    6.321967    4.600647          0   13.88889

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(176 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(176 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(176 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    3.787879    17.05538          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(980 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(980 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(980 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142     3.75503    7.311662          0   33.33333
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(2761 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(2,761 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,761 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    6.137778    5.676406          0         25
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(928 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(928 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(928 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127           0           0          0          0
{txt}
{com}. restore
{txt}
{com}. *MPs
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(18561 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(18,561 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(18,561 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    7.367469    6.585356          0         40
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////////////////////////////////
> **Military**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen military=total(temp) if edumajor1==10
{txt}(24674 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=military/alldegrees*100
{txt}(24,674 missing values generated)

{com}. keep if military<.
{txt}(24,674 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(416 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              45
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              45{txt}  (_merge==2)

{col 5}matched{col 30}{res}             100{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(45 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.028542    2.919659          0   15.50388
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.028541953604797
                {txt}r(Var) =  {res}8.524406399069852
                 {txt}r(sd) =  {res}2.919658610021016
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}15.50387573242188
                {txt}r(sum) =  {res}294.1385832726955
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    .6664469    .8297282          0   3.398058
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    2.429874    3.185298          0   15.50388
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.401026    2.193543          0   13.63636
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    4.244456    3.963488          0   15.50388
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    2.720803    3.689241          0   13.63636

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.193023    1.683649          0   7.183365

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    2.416428    3.527701          0   15.50388

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    .9515702    1.410723          0   7.291667

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    3.767127    2.980067          0   10.34483

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(170 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(170 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(170 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132    9.090909    28.18842          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(976 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(976 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(976 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    4.448103    10.02833          0         50
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(2856 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(2,856 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,856 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    2.357127    4.326298          0         20
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(927 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(927 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(927 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    .0787402    .8873565          0         10
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(19522 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(19,522 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(19,522 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    1.365748     2.82481          0   17.17172
{txt}
{com}. restore
{txt}
{com}. /////////////////////////////////////////////
> **Other**
. preserve
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(21901 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=other/alldegrees*100
{txt}(21,901 missing values generated)

{com}. keep if other<.
{txt}(21,901 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,150 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               6
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               6{txt}  (_merge==2)

{col 5}matched{col 30}{res}             139{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(6 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.87097    9.757563          0    51.9774
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}10.87096720533124
                {txt}r(Var) =  {res}95.2100309760536
                 {txt}r(sd) =  {res}9.757562757986936
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}51.97740173339844
                {txt}r(sum) =  {res}1576.29024477303
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    12.08327    11.22076   .1633987    51.9774
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    10.51377    9.308757          0   45.45454
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    11.05776    9.946177          0    51.9774
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    10.21134    9.180302          0   38.12636
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    11.73373    10.22821          0   45.45454

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    9.394644    8.406693          0   33.98058

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    7.694734    7.693458          0   32.37146

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    12.17097    10.49646   1.015228    51.9774

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16     12.8665    11.10951   1.401869   45.45454

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(25,007 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(175 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(175 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(175 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        132     5.30303    21.62976          0        100
{txt}
{com}. restore
{txt}
{com}. *Top Ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(24,174 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(930 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(930 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(930 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        142    8.970261    14.91539          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(22,258 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(2634 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(2,634 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,634 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    9.936886    11.38007          0   57.14286
{txt}
{com}. restore
{txt}
{com}. *Supreme Court* 
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(24,262 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(925 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(925 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(925 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        127    .2974628    1.972021          0   16.66667
{txt}
{com}. restore
{txt}
{com}. *MPs
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,311 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(16965 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(16,965 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(16,965 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    12.61392    13.62966          0        100
{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. ******************Table 5*******************************
. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(occupation1)
{txt}(6,687 observations deleted)

{com}. count
  {res}31,398
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen alloccp=total(temp)
{txt}
{com}. tab occupation1

     {txt}occupation1 {c |}      Freq.     Percent        Cum.
{hline 17}{c +}{hline 35}
    White Collar {c |}{res}     15,504       49.38       49.38
{txt}     Blue Collar {c |}{res}        676        2.15       51.53
{txt}       Education {c |}{res}      3,252       10.36       61.89
{txt}        Military {c |}{res}        298        0.95       62.84
{txt}           Media {c |}{res}        779        2.48       65.32
{txt}None or Politics {c |}{res}      8,737       27.83       93.15
{txt}           Other {c |}{res}      2,152        6.85      100.00
{txt}{hline 17}{c +}{hline 35}
           Total {c |}{res}     31,398      100.00
{txt}
{com}. count
  {res}31,398
{txt}
{com}. count if power==1
  {res}195
{txt}
{com}. count if power==3
  {res}1,102
{txt}
{com}. count if office1==2|office2==2|office3==2
  {res}3,079
{txt}
{com}. count if office1==7|office2==7|office3==7
  {res}824
{txt}
{com}. count if office1==6|office2==6|office3==6
  {res}25,725
{txt}
{com}. count if wealth==0
  {res}21,228
{txt}
{com}. count if wealth==1
  {res}10,170
{txt}
{com}. count if region==1
  {res}4,852
{txt}
{com}. count if region==2
  {res}4,983
{txt}
{com}. count if region==3
  {res}9,013
{txt}
{com}. count if region==4
  {res}10,129
{txt}
{com}. count if region==5
  {res}2,421
{txt}
{com}. count if regime==0
  {res}23,552
{txt}
{com}. count if regime==1
  {res}7,846
{txt}
{com}. 
. **White collar**
. preserve
{txt}
{com}. keep if occupation1==1
{txt}(15,894 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1
{txt}
{com}. gen percentage=whitecol/alloccp*100
{txt}
{com}. collapse (max) percentage, by(country country_nid)
{txt}
{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}             144{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(1 real change made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    55.09912    22.22261          0    97.9798
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}55.09912225912358
                {txt}r(Var) =  {res}493.8442549504698
                 {txt}r(sd) =  {res}22.22260684416817
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}97.97979736328125
                {txt}r(sum) =  {res}7989.372727572918
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    57.81793    20.85539   1.963746   89.65517
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    54.29805    22.63686          0    97.9798
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    56.87585    22.57382          0    97.9798
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    48.82504    20.01979   8.602151   92.69663
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    47.90774    24.60377          0    97.9798

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    64.83859    20.15839   2.625821   96.47059

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    53.50351    25.99932   .4807692   95.50562

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    58.01764    19.57097   1.963746   89.65517

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    52.68361    12.64623   27.27273    73.1203

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. count
  {res}195
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(123 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(123 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(123 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    35.50725    43.64877          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. count
  {res}1,102
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(584 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(584 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(584 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    45.24288    27.13531          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. count
  {res}3,079
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(1606 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(1,606 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,606 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144     49.5717    27.16568          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. count
  {res}824
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(257 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(257 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(257 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120    68.70219    41.49219          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. count
  {res}25,725
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(13153 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(13,153 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(13,153 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    56.76315    23.11311          0        100
{txt}
{com}. restore
{txt}
{com}. //////////////////////////////////////////////////////////
> **Blue collar**
. preserve
{txt}
{com}. keep if occupation1==2 
{txt}(30,722 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen blucol=total(temp)
{txt}
{com}. gen percentage=blucol/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(587 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              56
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              56{txt}  (_merge==2)

{col 5}matched{col 30}{res}              89{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(56 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.979283    4.236258          0   29.66102
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}1.979282604209308
                {txt}r(Var) =  {res}17.94588076426093
                 {txt}r(sd) =  {res}4.236257872729295
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}29.6610164642334
                {txt}r(sum) =  {res}286.9959776103497
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.657909    5.499862          0    19.5122
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    1.484687     3.67101          0   29.66102
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.243305    4.560078          0   29.66102
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    1.046953    2.661259          0   14.64355
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    1.475897    2.617365          0   14.64355

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.309557    1.912442          0   7.051282

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    1.045422    1.439892          0   4.950495

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.680685    6.555964          0   29.66102

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    1.337093    4.525501          0   18.21705

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(194 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(194 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(194 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    .3623188    4.256283          0         50
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(1080 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(1,080 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,080 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    2.275977    6.788878          0         50
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(3039 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(3,039 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,039 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    1.395355    3.365523          0         20
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(822 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(822 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(822 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120    .2708333    2.144855          0         20
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(25114 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(25,114 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(25,114 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    2.189881    4.974048          0   34.69388
{txt}
{com}. restore
{txt}
{com}. ////////////////////////////////////////////////////////////////
> **Education**
. preserve
{txt}
{com}. keep if occupation1==3
{txt}(28,146 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen edu=total(temp) 
{txt}
{com}. gen percentage=edu/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,111 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               4
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               4{txt}  (_merge==2)

{col 5}matched{col 30}{res}             141{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(4 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    11.74625    8.020409          0   33.33333
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}11.74625396440769
                {txt}r(Var) =  {res}64.32696098103361
                 {txt}r(sd) =  {res}8.020409028287373
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}33.33333206176758
                {txt}r(sum) =  {res}1703.206824839115
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    10.12231    6.413632          0   28.16901
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    12.22474    8.401042          0   33.33333
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    11.19303    7.689704          0   32.09877
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    13.69982    8.950834          0   33.33333
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    13.74614    9.466795          0   32.09877

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    10.32017    6.844849   1.176471   24.13793

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    9.182584    6.617136   .5617977   28.16901

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    11.14007    6.508107          0   28.16901

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    14.85496    10.13013          0   33.33333

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(175 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(175 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(175 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    9.782609    26.23497          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(991 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(991 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(991 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    11.30136    15.21238          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(2684 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(2,684 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,684 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    13.57402    12.39969          0         60
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(721 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(721 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(721 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120    10.04372     23.1701          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(23123 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(23,123 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(23,123 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141     11.9623    8.957648          0         50
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////////////////////////////////////
> **Media**
. preserve
{txt}
{com}. keep if occupation1==4
{txt}(31,100 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen media=total(temp) 
{txt}
{com}. gen percentage=media/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(215 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              62
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              62{txt}  (_merge==2)

{col 5}matched{col 30}{res}              83{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(62 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     1.13305    1.484396          0   7.792208
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}1.133049514478651
                {txt}r(Var) =  {res}2.203431644530145
                 {txt}r(sd) =  {res}1.484396053797687
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}7.792207717895508
                {txt}r(sum) =  {res}164.2921795994043
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.333506    1.623208          0   6.410256
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    1.073986    1.443418          0   7.792208
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.197307    1.527089          0   7.792208
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    .9061402    1.319775          0   4.477612
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    .7024898    1.222628          0   4.477612

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.702847    1.952066          0   7.792208

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    .9222779    1.136014          0   3.521127

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    1.338163     1.55061          0   6.410256

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    1.117834    1.370737          0   4.545455

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(193 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(193 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(193 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    1.449275    11.99457          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(1092 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(1,092 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,092 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    .8361477    3.309464          0         20
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(3055 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(3,055 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,055 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    .7966545    2.069354          0   10.52632
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(824 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(824 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(824 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120           0           0          0          0
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(25475 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(25,475 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(25,475 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    1.264991    2.030213          0       12.5
{txt}
{com}. restore
{txt}
{com}. //////////////////////////////////////////////////////////////
> **Military**
. preserve
{txt}
{com}. keep if occupation1==5
{txt}(30,619 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen military=total(temp) 
{txt}
{com}. gen percentage=military/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(691 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              57
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              57{txt}  (_merge==2)

{col 5}matched{col 30}{res}              88{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(57 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.265565    4.448818          0   38.70968
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.26556456417873
                {txt}r(Var) =  {res}19.79197720341062
                 {txt}r(sd) =  {res}4.448817506193148
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}38.70967864990234
                {txt}r(sum) =  {res}328.5068618059158
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    .5526862    .9895509          0   4.545455
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    2.770252    4.925903          0   38.70968
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.332489    2.500674          0   17.02128
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    5.560488    7.413757          0   38.70968
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    3.441692      6.9902          0   38.70968

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    .8154498    1.184603          0   5.105105

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    2.966122    3.693097          0   15.84906

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41     .698153    1.331495          0   5.223881

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16     4.52552    4.469999          0   18.18182

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(180 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(180 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(180 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    8.695652    26.95836          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(1045 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(1,045 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,045 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    5.647585    13.12712          0         70
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(2992 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(2,992 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,992 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    2.446891    4.973753          0   33.33333
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(824 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(824 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(824 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120           0           0          0          0
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(25165 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(25,165 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(25,165 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    1.620843    3.531728          0   25.71428
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////////////////////////////
> **none of pols**
. preserve
{txt}
{com}. keep if occupation1==6
{txt}(22,661 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen nonepols=total(temp) 
{txt}
{com}. gen percentage=nonepols/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,600 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               8
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               8{txt}  (_merge==2)

{col 5}matched{col 30}{res}             137{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(8 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    22.10426    22.69949          0   98.03625
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}22.1042592932438
                {txt}r(Var) =  {res}515.2669103201029
                 {txt}r(sd) =  {res}22.69949141104494
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}98.0362548828125
                {txt}r(sum) =  {res}3205.117597520351
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    23.09384    24.73645          0   98.03625
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    21.81269    22.17377          0   93.61702
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    21.43856    23.76057          0   98.03625
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    24.45502    18.61343          0   87.09677
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    26.19936    27.64151          0   93.61702

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    15.74189    18.90762          0    89.2779

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    26.35137    22.88944          0   91.82692

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    21.38155     22.2988          0   98.03625

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    16.87234    12.05889          0   36.36364

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(125 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(125 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(125 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    35.14493    44.96934          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(774 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(774 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(774 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    29.44022    28.71825          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(2161 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(2,161 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,161 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    28.48978    29.72793          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(723 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(723 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(723 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120    15.50668    33.58564          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(18393 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(18,393 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(18,393 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    21.42265    24.56665          0        100
{txt}
{com}. restore
{txt}
{com}. ////////////////////////////////////////////////////////////////////
> **Other**
. preserve
{txt}
{com}. keep if occupation1==7
{txt}(29,246 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) 
{txt}
{com}. gen percentage=other/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(2,029 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              22
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              22{txt}  (_merge==2)

{col 5}matched{col 30}{res}             123{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(22 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    5.672468    10.88458          0        100
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}5.672467619900046
                {txt}r(Var) =  {res}118.4739986436271
                 {txt}r(sd) =  {res}10.88457618116696
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}100
                {txt}r(sum) =  {res}822.5078048855066
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.421814    6.070319          0   35.10972
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    6.335606    11.87953          0        100
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    5.719456    11.75466          0        100
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32     5.50654    7.147894          0    25.4902
{txt}
{com}. by region, sort: sum  percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    6.526685    16.09167          0        100

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    5.271489    7.036392          0   35.10972

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    6.028707     11.3647          0   54.04858

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.743743    3.851562          0   18.40909

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    8.608635    12.09139          0   45.45454

{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(31,203 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(180 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(180 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(180 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    9.057971    27.17576          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(30,296 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(1046 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(1,046 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,046 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    5.255826    10.62223          0   66.66666
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(28,319 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(2937 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(2,937 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,937 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        144    3.725593    8.385878          0   63.49206
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7
{txt}(30,574 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(773 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(773 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(773 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        120     5.47658    18.73294          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(5,673 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(23927 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(23,927 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(23,927 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        141    4.776187    8.244237          0   58.62069
{txt}
{com}. restore
{txt}
{com}. 
. 
. 
. 
. 
. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. ********TABLE 6*************
. 
. ***Row 1: Tenure***
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if person_office_start_year==0
{txt}(3,253 observations deleted)

{com}. drop if person_office_start_year>2013
{txt}(2 observations deleted)

{com}. drop if person_office_start_year<1955
{txt}(1 observation deleted)

{com}. gen tenure=2013-person_office_start_year
{txt}
{com}. preserve
{txt}
{com}. count
  {res}34,829
{txt}
{com}. sort country_nid
{txt}
{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        145     5.07016    2.310961   1.091691       17.5
{txt}
{com}. restore
{txt}
{com}. *Apex*
. preserve
{txt}
{com}. keep if power==1
{txt}(34,637 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        136    6.930147    6.392175          1         43
{txt}
{com}. restore
{txt}
{com}. *Next 10*
. preserve
{txt}
{com}. keep if power==3
{txt}(33,845 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        143    5.929562    4.176691        1.5         28
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2|office2==2|office3==2
{txt}(31,415 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        143    4.292872    2.277679          1   15.42857
{txt}
{com}. restore
{txt}
{com}. *Supreme Supreme Court*
. preserve
{txt}
{com}. keep if office1==7|office2==7|office2==7
{txt}(33,954 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        126    6.714564     3.38847          1         22
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6|office2==6|office2==6
{txt}(5,502 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        142    4.883653    2.327075          1    15.1579
{txt}
{com}. restore
{txt}
{com}. *Wealth*
. preserve
{txt}
{com}. keep if wealth==0
{txt}(10,203 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        112     4.87197    2.285093   1.091691       17.5
{txt}
{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. keep if wealth==1
{txt}(24,626 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         33    5.742803    2.305597   2.174312    10.9713
{txt}
{com}. restore
{txt}
{com}. *Regime*
. *Demo
. preserve
{txt}
{com}. keep if regime==0
{txt}(9,390 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        113    4.844165    1.956758   1.091691    10.9713
{txt}
{com}. restore
{txt}
{com}. *auto
. preserve
{txt}
{com}. keep if regime==1
{txt}(25,439 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         32    5.868204    3.182866   1.565789       17.5
{txt}
{com}. restore
{txt}
{com}. //regions
. preserve
{txt}
{com}. collapse (mean) tenure=tenure, by( region country_nid)
{txt}
{com}. by region, sort: sum tenure

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         38    4.356495    1.983505    1.18315   7.605839

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         24    4.671823    2.074091   1.648649   10.63843

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         26    5.456936    1.832952   2.992126   9.289256

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         41    5.221966    1.864217   2.140187    10.9713

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         16    6.345106     4.06216   1.091691       17.5

{txt}
{com}. restore
{txt}
{com}. 
. 
. ***Rows Experience 8***
. //1     None
. //2     Trade union (national, supra-national)
. //3     Employer’s organization (national, supra-national)
. //4     Interest group (national, supra-national)
. //5     NGO/Political movement/Governmental intl org
. //6     Local gov/Municipal position
. //7     Partisan
. //8     Previous MP/Minister
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/GLP_person_18 07 29.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(15,532 observations deleted)

{com}. count
  {res}22,553
{txt}
{com}. tab polexp

                {txt}polexp {c |}      Freq.     Percent        Cum.
{hline 23}{c +}{hline 35}
                  None {c |}{res}      1,651        7.32        7.32
{txt}           Trade Union {c |}{res}        242        1.07        8.39
{txt}Employers organization {c |}{res}        195        0.86        9.26
{txt}        Interest Group {c |}{res}        463        2.05       11.31
{txt}               NGO/IGO {c |}{res}      1,796        7.96       19.27
{txt}      Local Government {c |}{res}      4,301       19.07       38.35
{txt}           MP/Minister {c |}{res}      4,935       21.88       60.23
{txt}              Partisan {c |}{res}      8,970       39.77      100.00
{txt}{hline 23}{c +}{hline 35}
                 Total {c |}{res}     22,553      100.00
{txt}
{com}. count
  {res}22,553
{txt}
{com}. count if power==1
  {res}178
{txt}
{com}. count if power==3
  {res}948
{txt}
{com}. count if office1==2|office2==2|office3==2
  {res}2,442
{txt}
{com}. count if office1==7|office2==7|office3==7
  {res}239
{txt}
{com}. count if office1==6|office2==6|office3==6
  {res}18,633
{txt}
{com}. count if wealth==0
  {res}13,810
{txt}
{com}. count if wealth==1
  {res}8,743
{txt}
{com}. count if region==1
  {res}3,698
{txt}
{com}. count if region==2
  {res}3,830
{txt}
{com}. count if region==3
  {res}4,389
{txt}
{com}. count if region==4
  {res}9,066
{txt}
{com}. count if region==5
  {res}1,570
{txt}
{com}. count if regime==0
  {res}19,107
{txt}
{com}. count if regime==1
  {res}3,446
{txt}
{com}. **None**
. preserve
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(20902 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(20,902 missing values generated)

{com}. keep if none<.
{txt}(20,902 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,551 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta" 
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              45
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              45{txt}  (_merge==2)

{col 5}matched{col 30}{res}             100{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(45 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.912028     11.8281          0   70.58823
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}6.912028427576197
                {txt}r(Var) =  {res}139.9040096832875
                 {txt}r(sd) =  {res}11.82810253943072
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}70.58823394775391
                {txt}r(sum) =  {res}1002.244121998549
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    8.661775    14.12499          0   59.30233
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    6.396478    11.08155          0   70.58823
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    6.813454    10.96715          0   59.30233
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    7.260119    14.66839          0   70.58823
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    5.954992    10.49066          0         40

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24     9.69101    14.57862          0   59.30233

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    8.040558    11.79024          0   54.44618

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.816653    5.680354          0   26.47059

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    11.11456    19.13333          0   70.58823

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. count
  {res}178
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(166 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(166 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(166 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    6.147541    21.87291          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. count
  {res}948
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(890 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(890 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(890 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    6.284324    16.39565          0   88.88889
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. count
  {res}2,442
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(2264 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(2,264 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,264 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    6.839337    11.94734          0       62.5
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. count
  {res}239
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(138 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(138 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(138 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61    31.81054     41.9691          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. count
  {res}18,633
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(17413 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(17,413 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(17,413 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    5.500796    11.92528          0   76.92308
{txt}
{com}. restore
{txt}
{com}. /////////////////////////////////////////////////////
> **Trade Union**
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(22311 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(22,311 missing values generated)

{com}. keep if trade<.
{txt}(22,311 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(174 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              77
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              77{txt}  (_merge==2)

{col 5}matched{col 30}{res}              68{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(77 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     1.91943    8.684813          0        100
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}1.919429529535359
                {txt}r(Var) =  {res}75.42596928216607
                 {txt}r(sd) =  {res}8.684812564596086
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}100
                {txt}r(sum) =  {res}278.3172817826271
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.159206    1.763812          0   7.692307
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    2.143424    9.835171          0        100
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.316986    3.100982          0         25
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    4.046808    17.59628          0        100
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    1.795025     3.27794          0   12.71186

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.842436    5.066171          0         25

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26     4.59302     19.4959          0        100

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    .8284945    1.508829          0   7.692307

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16     .781316     1.26598          0          4

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(177 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(177 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(177 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    .8196721    9.053575          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(941 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(941 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(941 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    .9205191    5.238692          0         50
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(2417 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(2,417 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,417 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    1.625857    8.940789          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(239 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(239 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(239 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61           0           0          0          0
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(18431 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(18,431 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(18,431 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    1.640112    4.763336          0         40
{txt}
{com}. restore
{txt}
{com}. //////////////////////////////
> **Employer's association**
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(22358 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(22,358 missing values generated)

{com}. keep if employ<.
{txt}(22,358 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(140 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              90
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              90{txt}  (_merge==2)

{col 5}matched{col 30}{res}              55{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(90 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.487658    6.602869          0   72.85714
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}1.487657914079469
                {txt}r(Var) =  {res}43.59788332643273
                 {txt}r(sd) =  {res}6.602869325257977
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}72.85713958740234
                {txt}r(sum) =  {res}215.710397541523
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    .3355049    .4739952          0   1.886792
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    1.827132    7.482227          0   72.85714
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.443653    7.242807          0   72.85714
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    1.643049    3.600089          0   16.21622
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    2.508568    11.85542          0   72.85714

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.030328    5.027326          0         25

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    1.719459    3.551138          0   16.21622

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    .2473101    .4639249          0   2.222222

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    1.050706    1.971934          0   5.882353

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(178 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(178 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(178 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122           0           0          0          0
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(936 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(936 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(936 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    1.220337     5.21684          0   42.85714
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(2416 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(2,416 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,416 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    1.860231     7.11472          0         50
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(235 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(235 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(235 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61    5.737705    22.54322          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(18490 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(18,490 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(18,490 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    2.055444    11.72204          0        100
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////
> **Interest group**
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(22090 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage= interest/allexp*100
{txt}(22,090 missing values generated)

{com}. keep if interest<.
{txt}(22,090 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(380 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              62
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              62{txt}  (_merge==2)

{col 5}matched{col 30}{res}              83{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(62 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.474712    5.598863          0   39.83051
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.474711842578033
                {txt}r(Var) =  {res}31.34726502572218
                 {txt}r(sd) =  {res}5.598862833265536
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}39.83050918579102
                {txt}r(sum) =  {res}358.8332171738148
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    2.914697    6.580376          0   28.78788
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    2.345073    5.301787          0   39.83051
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.540773    5.948696          0   39.83051
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    2.241432    4.206098          0   20.83333
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    2.449279    7.148207          0   39.83051

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    3.680581    5.571978          0         25

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26     2.20713    2.630894          0   9.063444

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    2.624545     6.38394          0   28.78788

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    .7771843    1.219389          0   3.609342

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(172 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(172 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(172 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    2.868852    14.79778          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(934 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(934 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(934 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    1.202352    4.524919          0         25
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(2384 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(2,384 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,384 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    2.501194    6.982587          0         50
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(201 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(201 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(201 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61    11.86221    29.42794          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(18302 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(18,302 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(18,302 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    2.327606    5.453825          0   36.36364
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////
> **NGO**
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(20757 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(20,757 missing values generated)

{com}. keep if ngo<.
{txt}(20,757 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,677 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              26
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              26{txt}  (_merge==2)

{col 5}matched{col 30}{res}             119{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(26 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.406563    14.60568          0   72.25131
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}9.406562897049147
                {txt}r(Var) =  {res}213.3257576526996
                 {txt}r(sd) =  {res}14.60567552880385
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}72.25131225585938
                {txt}r(sum) =  {res}1363.951620072126
{txt}
{com}. gen percentage1=r(sum)/144
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    4.579754    6.086994          0   25.90234
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    10.82875    16.03428          0   72.25131
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113     9.82125    15.20531          0   72.25131
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32      7.9422    12.36058          0         50
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    14.92134    17.80847          0   72.25131

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    12.84796    20.51036          0   69.53642

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    7.419461     10.4182          0    50.9434

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.935197    5.288934          0    22.1519

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16     8.39629    13.39272          0         50

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(166 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(166 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(166 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    6.967213    22.55899          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(861 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(861 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(861 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    9.178832    20.07178          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(2223 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(2,223 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,223 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    9.330056    16.28106          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(224 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(224 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(224 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61    7.610824     23.6396          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(17207 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(17,207 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(17,207 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    10.25498    18.24204          0        100
{txt}
{com}. restore
{txt}
{com}. ///////////////////////////////////////////////////////////////
> **Local government**
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(18252 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(18,252 missing values generated)

{com}. keep if local<.
{txt}(18,252 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,174 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              18
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              18{txt}  (_merge==2)

{col 5}matched{col 30}{res}             127{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(18 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    16.23879    17.58984          0   98.33334
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}16.23878517644159
                {txt}r(Var) =  {res}309.4026070296646
                 {txt}r(sd) =  {res}17.58984386029804
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}98.33333587646484
                {txt}r(sum) =  {res}2354.62385058403
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    22.63789    15.55336   .6015037   52.04082
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    14.35333    17.77322          0   98.33334
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    17.12594    17.72181          0   98.33334
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    13.10603    17.01612          0   66.47399
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    9.396813    12.91221          0   69.23077

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    23.52657    21.27778          0   98.33334

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    14.25821    16.39543          0   66.47399

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    21.83199    18.61104          0   77.77778

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    10.44262     12.7049          0         50

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(171 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(171 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(171 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    4.508197    19.28912          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(895 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(895 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(895 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    5.669758    11.84074          0   66.66666
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(2219 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(2,219 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,219 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    10.38046    16.44197          0         80
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(232 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(232 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(232 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61     3.63388    16.15752          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(14735 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(14,735 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(14,735 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    18.17872    20.17632          0        100
{txt}
{com}. restore
{txt}
{com}. /////////////////////////////////////////////////////////////////
> **MP/Minister**
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(17618 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(17,618 missing values generated)

{com}. keep if mpmin<.
{txt}(17,618 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,803 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              13
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              13{txt}  (_merge==2)

{col 5}matched{col 30}{res}             132{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(13 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    22.00289    20.28336          0   80.31496
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}22.00289233491339
                {txt}r(Var) =  {res}411.4146202024331
                 {txt}r(sd) =  {res}20.28335820820687
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}80.31496429443359
                {txt}r(sum) =  {res}3190.419388562441
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    20.10746    16.70457          0   58.65385
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    22.56137    21.25793          0   80.31496
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    21.96508    20.20791          0         80
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    22.13643    20.87341          0   80.31496
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    28.57871     22.1445          0   80.31496

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    13.17007    17.58031          0    76.0274

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    21.96521    20.90825          0   70.32419

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    22.19319    18.84384          0   70.67308

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    19.20815     18.6486          0   59.61538

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(128 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(128 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(128 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    29.09836    42.56262          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(710 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(710 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(710 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    25.35598    27.35725          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(1721 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(1,721 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,721 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    27.36303    25.46535          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(216 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(216 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(216 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61    19.94536    36.91466          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(14616 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(14,616 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(14,616 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    22.36788    23.96833          0        100
{txt}
{com}. restore
{txt}
{com}. /////////////////////////////////////////////////////////////
> //Partisan
. preserve
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(13583 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(13,583 missing values generated)

{com}. keep if partisan<.
{txt}(13,583 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,834 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/Samplelist.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               9
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               9{txt}  (_merge==2)

{col 5}matched{col 30}{res}             136{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(9 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    38.17862    26.61991          0   99.25373
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}38.17862149518112
                {txt}r(Var) =  {res}708.6196533936198
                 {txt}r(sd) =  {res}26.61991084496001
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}99.25373077392578
                {txt}r(sum) =  {res}5535.900116801262
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    39.60371     24.9353   1.744186   96.99248
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    37.75873    27.18934          0   99.25373
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    38.97287    26.64882          0   97.73299
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    35.37393    26.74874          0   99.25373
{txt}
{com}. by region, sort: sum percentage

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    34.39528    26.24723          0   96.52174

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    33.21104    23.74737          0   82.17822

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    39.79695    28.54771          0   99.25373

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    44.52262    25.91446          0   96.99248

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    35.72917    29.88169          0   97.73299

{txt}
{com}. restore
{txt}
{com}. *Apex* 
. preserve
{txt}
{com}. keep if power==1
{txt}(22,375 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(88 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(88 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(88 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        122    49.59016    47.45415          0        100
{txt}
{com}. restore
{txt}
{com}. *Top ten*
. preserve
{txt}
{com}. keep if power==3
{txt}(21,605 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(469 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(469 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(469 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    50.16789    33.69003          0        100
{txt}
{com}. restore
{txt}
{com}. *Cabinet*
. preserve
{txt}
{com}. keep if office1==2 |office2==2 |office3==2
{txt}(20,111 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(1450 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(1,450 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,450 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        138    40.09983    30.53012          0        100
{txt}
{com}. restore
{txt}
{com}. *Supreme Court*
. preserve
{txt}
{com}. keep if office1==7 |office2==7 |office3==7 
{txt}(22,314 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(188 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(188 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(188 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         61    19.39949    34.88183          0        100
{txt}
{com}. restore
{txt}
{com}. *MPs*
. preserve
{txt}
{com}. keep if office1==6 |office2==6 |office3==6
{txt}(3,920 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(11237 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(11,237 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(11,237 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        137    37.67446     29.0223          0   99.44752
{txt}
{com}. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/_j/4j3rxz2916g3q9f0y8bz58jh0000gn/T//SD06684.000000"
{txt}
{com}. 
. **************** Table 7**************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/MP Salaries.dta"
{txt}
{com}. gen MPsalary=MPSalaryUSAnnual
{txt}
{com}. keep if MPsalary<.
{txt}(0 observations deleted)

{com}. replace MPsalary=round(MPsalary)
{txt}(1 real change made)

{com}. sort MPsalary
{txt}
{com}. sum MPsalary

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}        145    54337.35    52653.79          0     360000
{txt}
{com}. sum MPsalary if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         33    95115.45    44472.43      26145     185700
{txt}
{com}. sum MPsalary if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}        112    42322.38    48851.38          0     360000
{txt}
{com}. sum MPsalary if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}        114    56524.22    46324.06          0     187339
{txt}
{com}. sum MPsalary if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         31    46295.32    71691.45          0     360000
{txt}
{com}. sum MPsalary if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         34    37826.53    39099.88         19     187339
{txt}
{com}. sum MPsalary if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         23    60699.35    45963.23          0     174000
{txt}
{com}. sum MPsalary if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         33    40317.55    51735.42          0     173131
{txt}
{com}. sum MPsalary if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         40     64776.5    43739.43       7200     185700
{txt}
{com}. sum MPsalary if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}MPsalary {c |}{res}         15    85012.67    87374.04       1491     360000
{txt}
{com}. ////Row2 
> gen salarygdp1=MPsalary/GDPpercapitaCurrentUS
{txt}(2 missing values generated)

{com}. sum salarygdp1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}        143    13.51868    25.82283          0   175.8242
{txt}
{com}. sum salarygdp1 if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         33    3.131985    2.252867   .8215951   11.95454
{txt}
{com}. sum salarygdp1 if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}        110    16.63469    28.71844          0   175.8242
{txt}
{com}. sum salarygdp1 if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}        113    12.84828    24.19176   .0304879   168.5215
{txt}
{com}. sum salarygdp1 if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         30    16.04386    31.56773          0   175.8242
{txt}
{com}. by region, sort: sum  salarygdp1

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         34    35.13158    45.05548   .0304879   175.8242

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         22    10.02529     8.04075   1.627977   37.13838

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         32    7.603193    10.20222          0   50.25381

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         40    3.326284    2.214594   .8215951   13.17721

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}salarygdp1 {c |}{res}         15    9.452509    9.445581   .3592771   33.25594

{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Replication-Log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}17 Sep 2018, 08:10:55
{txt}{.-}
{smcl}
{txt}{sf}{ul off}